


export function getcategory() {
	return new Promise(function(resolve, reject) {
		uni.request({
			url: "/booksClass/list",
			success(res) {
				resolve(res)
			},
			fail(err) {
				reject(err)
			}
		})
	})
}
export function getclassThire(classLevel) {
	return new Promise(function(resolve, reject) {
		uni.request({
			url: "/booksClass/getSet",
			data:{classId:classLevel},
			success(res) {
				resolve(res)
			},
			fail(err) {
				reject(err);
			}
		})
	})
}